package com.example.eeuse.controller;


import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.eeuse.mapper.es.DocumentMapper;
import com.example.eeuse.pojo.es.Document;
import com.example.eeuse.pojo.po.AuditLogPo;
import com.example.eeuse.service.AuditLogService;
import lombok.RequiredArgsConstructor;
import org.dromara.easyes.core.conditions.select.LambdaEsQueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 测试使用Easy-ES
 * <p>
 * Copyright © 2021 xpc1024 All Rights Reserved
 **/
@RestController
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AuditLogController {

    private final AuditLogService auditLogService;

    @GetMapping("/auditLog/list")
    public IPage<AuditLogPo> search() {
        return auditLogService.list();
    }
}
